﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GurLoader.GlobalHotkey;
using NUnit.Framework;

namespace GurLoaderWPF.Test.GlobalHotKey
{
    [TestFixture]
    public class HotKeyEventArgsTests
    {
        [Test]
        public void CreateInstanceTest()
        {
            var hotkey = new HotKey();
            var args = new HotKeyEventArgs(hotkey);

            Assert.IsNotNull(args);
            Assert.AreEqual(hotkey, args.HotKey);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void CreateInstanceNullHotkeyTest()
        {
            var args = new HotKeyEventArgs(null);
        }
    }
}
